﻿<UserControl x:Class="SMIL_WebPart.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:map="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
    xmlns:fp="clr-namespace:DeepEarth.BingMapsToolkit.Client.Controls;assembly=DeepEarth.BingMapsToolkit.Client.Controls.FloatingPanel"
    xmlns:mini="clr-namespace:DeepEarth.BingMapsToolkit.Client.Controls;assembly=DeepEarth.BingMapsToolkit.Client.Controls.MiniMap"
    xmlns:find="clr-namespace:DeepEarth.BingMapsToolkit.Client.Controls;assembly=DeepEarth.BingMapsToolkit.Client.Controls.Find"
    xmlns:layer="clr-namespace:SMIL.LayerPanel;assembly=SMIL.LayerPanel"
    mc:Ignorable="d"
             >

    <Grid x:Name="LayoutRoot" Background="Azure">
        <map:Map x:Name="map" Mode="AerialWithLabels" />
        <fp:FloatingPanel SnapPosition="TopLeft" EnableClosing="False" Canvas.ZIndex="10000" Title="Tools" x:Name="toolPanel">
            <StackPanel Orientation="Horizontal">
                <Button Style="{StaticResource ButtonStyle}" x:Name="bFullScreen" ToolTipService.ToolTip="Full skärm" Click="bFullScreen_Click">
                    <Button.Content>
                        <Image Source="Images/FullScreen.png" Height="34" Width="Auto" Stretch="Uniform" />
                    </Button.Content>
                </Button>
                <Button Style="{StaticResource ButtonStyle}" x:Name="LayerControlButton" ToolTipService.ToolTip="Lagerkontroll" Click="LayerControlButton_Click">
                    <Image Source="Images/layers.png" Height="34" Width="Auto" Stretch="Uniform" />
                </Button>
                <Button Style="{StaticResource ButtonStyle}" ToolTipService.ToolTip="Print" x:Name="bPrint" Click="bPrint_Click">
                    <Image Source="Images/printer.png" Height="34" Width="Auto" Stretch="Uniform" />
                </Button>
                <Button Style="{StaticResource ButtonStyle}" ToolTipService.ToolTip="Overview" x:Name="bOVerView" Click="bOVerView_Click">
                    <Image Source="Images/Overview.png" Height="34" Width="Auto" Stretch="Uniform" />
                </Button>
                <Button Style="{StaticResource ButtonStyle}" ToolTipService.ToolTip="Find" x:Name="bFind" Click="bFind_Click">
                    <Image Source="Images/search.png" Height="34" Width="Auto" Stretch="Uniform" />
                </Button>
            </StackPanel>
        </fp:FloatingPanel>

        <fp:FloatingPanel x:Name="fpMini">
            <mini:MiniMap x:Name="miniMap" MapName="map" HorizontalAlignment="Center" VerticalAlignment="Top" />
        </fp:FloatingPanel>
        
        <fp:FloatingPanel x:Name="fpFind">
            <find:FindControl VerticalAlignment="Top" HorizontalAlignment="Center" MapName="map" />
        </fp:FloatingPanel>
        
        <fp:FloatingPanel x:Name="fpLayer">
            <layer:LayerPanel VerticalAlignment="Top" HorizontalAlignment="Center" MapName="map" x:Name="layer" />
        </fp:FloatingPanel>

        <fp:FloatingPanel x:Name="InfoPanel" Visibility="Collapsed">
            
        </fp:FloatingPanel>
    </Grid>
</UserControl>
